<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>

</body>
<script type="text/javascript">
    let name = '尚硅谷';
    let slogon = '永远追求行业更高标准';
    let improve = function () {
        console.log('可以提高你的技能');
    }
    //属性和方法简写
    let atguigu = {
        name,
        slogon,
        improve,
        change() {
            console.log('可以改变你')
        }
    };
    console.log(atguigu);
    /*
    * {name: '尚硅谷', slogon: '永远追求行业更高标准', improve: ƒ, change: ƒ}
          change: ƒ change()
          improve: ƒ ()
          name: "尚硅谷"
          slogon: "永远追求行业更高标准"
          [[Prototype]]: Object
    * */
</script>
</html>